package com.wei.health.model.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Setter
@Getter
public class UserLoginDto implements Serializable {

	private static final long serialVersionUID = 6865880222397602631L;

	@NotBlank(message = "账户不能为空")
	@Length(max = 20, message = "账户不能超过20位")
	private String userName;
	@NotBlank(message = "密码不能为空")
	@Length(max = 20, message = "密码不能超过20位")
	private String passWord;

}